Returns the edges of the polygon as a list of segments.
Each segment connects consecutive vertices, with the last segment connecting the last vertex to the first vertex.